package com.pactera.madp.cp.api.entity.workroom;

/**
 * WorkMassMsgEntity
 *
 * @author jun
 * @version 1.0
 * 2021/7/13 10:17
 **/

import cn.hutool.core.date.DateTime;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.pactera.madp.cp.api.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * @description:群发信息实体
 */
@TableName("cp_work_mass_msg")
@ApiModel(value = "群发信息表")
@Data
@EqualsAndHashCode(callSuper = false)
public class WorkMassMsgEntity extends BaseEntity<WorkMassMsgEntity> {


    @TableId(type= IdType.AUTO)
    @ApiModelProperty(value = "id")
    private Integer id;

    @ApiModelProperty(value = "创建人id")
    private String creator;

    @ApiModelProperty(value = "发送时间")
    private LocalDateTime sendTime;

    @ApiModelProperty(value = "微信msgid")
    private String msgId;

    @ApiModelProperty(value = "发送信息主体")
    private String messages;

    @ApiModelProperty(value = "送达群数/客户数")
    private Integer deliveryCount;

//    @ApiModelProperty(value = "更新时间")
//    private DateTime updateTime;
//
//    @ApiModelProperty(value = "创建时间")
//    private DateTime createTime;

    @ApiModelProperty(value = "群发消息创建来源。0：企业 1：个人")
    private Integer createType;

    @ApiModelProperty(value = "个人/群标识  1为个人群发   2为群 群发")
    private Integer msgType;

    @ApiModelProperty(value = "发送失败客户数")
    private Integer loseCount;

    @ApiModelProperty(value = "消息类型")
    private String type;

    @ApiModelProperty(value = "企业id")
    private Integer corpId;

}
